package com.jt.msg.req;

import com.jt.msg.DataPacket;
import io.netty.buffer.ByteBuf;


/**
 * 鉴权包
 *
 * @author wang xiao
 * date 2023/8/9
 */
public class AuthMsg extends DataPacket {

    /**
     * 鉴权码
     */
    private String authCode;

    public AuthMsg(ByteBuf byteBuf) {
        super(byteBuf);
    }

    @Override
    public void parseBody() {
        this.setAuthCode(readString(this.payload.readableBytes()));
    }

    public String getAuthCode() {
        return authCode;
    }

    public void setAuthCode(String authCode) {
        this.authCode = authCode;
    }
}
